package com.ssy.lingxi.product.repository;

import com.ssy.lingxi.product.entity.BrandCheckRecord;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
 * 品牌持久化层
 * @author jw.chen
 * @version 2.0.0
 * @date 2020/6/28
 */
public interface BrandCheckRecordRepository extends JpaRepository<BrandCheckRecord,Long>, JpaSpecificationExecutor<BrandCheckRecord> {
    List<BrandCheckRecord> findByBrandIdOrderByCreateTime(Long brandId);

    List<BrandCheckRecord> findByBrandId(Long brandId);

    void deleteByBrandId(Long brandId);
}
